/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.core.model.constant;

/**
 * session常量
 * 
 * @author jiadao
 * @version $Id: SessionConstant.java, v 0.1 2013-4-26 下午1:53:40 jiadao Exp $
 */
public class SessionConstant {

    /** cookie默认超时时间 30天 */
    public static final int    COOKIE_EXPIRETIME       = 60 * 60 * 24 * 30;

    /** 刷新有效期的时间间隔，单位分钟 */
    public static final int    REFRESH_INTERVAL        = 2;

    // ~~~ session中设置的值的key

    /** 私钥 */
    public static final String RSA_PRIVATE_KEY         = "RSA_PRIVATE_KEY";

    /** 公钥 */
    public static final String RSA_PUBLIC_KEY          = "ACTIVE_RSA_PUBLIC_KEY";

    /** 分布式session登陆上下文 */
    public static final String ACEGI_SECURITY_CONTEXT  = "ACEGI_SECURITY_CONTEXT";

    /** 分布式session Model */
    public static final String ALIPAY_MODEL            = "ALIPAY_MODEL";

    // ~~ 无线特有属性

    /** iw.term.id    终端ID */
    public static final String IW_TERM_ID              = "iw.term.id";

    /** iw.term.utdid    终端UTDID */
    public static final String IW_TERM_UTDID           = "iw.term.utdid";

    /** iw.term.apdid    终端apdid */
    public static final String IW_TERM_APDID           = "iw.term.apdid";

    /** iw.term.tid    终端tid */
    public static final String IW_TERM_TID             = "iw.term.tid";

    /** iw.term.type    终端类型  */
    public static final String IW_TERM_TYPE            = "iw.term.type";

    /** iw.term.os.type    终端操作平台 */
    public static final String IW_TERM_OS_TYPE         = "iw.term.os.type";

    /** iw.term.channel    终端安装渠道 */
    public static final String IW_TERM_CHANNEL         = "iw.term.channel";

    /** iw.term.productVersion    客户端版本号 */
    public static final String IW_TERM_PRODUCTVERSION  = "iw.term.productVersion";

    /** iw.term.mobileBrand    手机品牌 */
    public static final String IW_TERM_MOBILEBRAND     = "iw.term.mobileBrand";

    /** iw.term.mobileModel    手机机型 */
    public static final String IW_TERM_MOBILEMODEL     = "iw.term.mobileModel";

    /** iw.screen.width       屏幕宽  */
    public static final String IW_SCREEN_WIDTH         = "iw.screen.width";

    /** iw.screen.high     屏幕高 */
    public static final String IW_SCREEN_HIGH          = "iw.screen.high";

    /** wallet.login.apiversion 钱包登陆时的apiversion */
    public static final String WALLET_LOGIN_APIVERSION = "wallet.login.apiversion";

}
